﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="addnews.ascx.cs" Inherits="controls_admin_addnews" %>
<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
    TagPrefix="BDP" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<div id="content">      
    <!-- new box --> 
    	<div class="box corners shadow">
            <div class="box-header">
             <img src="../images/imageproductadd/1322011629_alacarte.png" />
                <h2><asp:Label ID="lbTittle" runat="server" Text="Viết bài"></asp:Label></h2>
                <div class="box-header-ctrls">	
                	<a href="javascript:void(null);" title="" class="close"><!-- -->
                    <asp:Label ID="lbTenHinh" runat="server" Text="Label" Visible="False"></asp:Label>
                    </a>
                </div>
            </div>                       
            <div class="box-content" id="pages-2">
                <div class="pages-head-2">
                    <table>
                    <tr>
                        <td>
                                <h2>Tiêu đề tin</h2>
                                <asp:TextBox ID="txtTieuDe" runat="server" width="590px" class="input-1"></asp:TextBox><br /><br />
                                <h2>Tóm tắt</h2>                    
                                <asp:TextBox ID="txtTomTat" runat="server" class="input-1" width="590px" 
                                    height="72px" TextMode="MultiLine"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Image ID="imgTinTuc" runat="server" Width="120" Height="120" 
                                ImageUrl="~/images/news/1.jpg" />                            
                        </td>
                      </tr>
                     </table>

                </div>
                <div class="edfloat">
                    <div class="pages-editor-2">
                        <div style="height:580px;">
                            <table style="width: 100%">
                                <tr>
                                    <td style="width: 10%">
                                        <h2>Nội dung :</h2>
                                    </td>
                                    <td>
                                        <FCKeditorV2:FCKeditor 
                                            ID="fckNoiDung" runat="server" Height="560px" BasePath="~/editor/fckeditor/">
                                        </FCKeditorV2:FCKeditor>
                                    </td>
                                </tr>
                            </table>
                        </div>	
                    </div>
                    <div class="pages-admod-box-2">
                        <label for="select-save">Chuyên mục</label>
                        <asp:DropDownList ID="ddlChuyenMuc" runat="server" class="select-1">
                            <asp:ListItem Value="0">----------Chọn---------</asp:ListItem>
                        </asp:DropDownList>                              
                        <label for="datepicker">Ngày viết</label>
                       <BDP:BasicDatePicker ID="bdpNgayViet" runat="server" DateFormat="dd/MM/yyyy" 
                            SelectedDate="" TitleFormat="yyyy" TodayButtonText="Hôm nay" 
                            NoneButtonText="Bỏ qua" ToolTip="Ngày viết bài">
                            <TodayButtonStyle BorderStyle="Ridge" />
                            <TodayDayStyle BorderStyle="Solid" />
                        </BDP:BasicDatePicker>                             
                        <label for="cats">Tác giả, nguồn tin</label>
                        <asp:TextBox ID="txtNguonTin" runat="server" class="input-1"></asp:TextBox>
                        <br /><br />
                        <label for="select-save">Chọn hình ảnh</label>
                        <div  style="margin-bottom:20px;">                                                     
                            <asp:FileUpload ID="fuHinhAnh" runat="server" Width="323px" size="37" class="fileinputs"/>
                        </div>
                        <div class="form-upload-msg-1" style="margin-top:-10px;">Max size 1Mb</div>
                        <div class="form-msg-warning-advanced" style="float:left; margin-left:0px; margin-bottom:20px; width:200px;">
                            Chỉ chấp nhận: jpg, jpeg, png và gif.</div>
                        <label for="select-save">Bình luận</label>
                        <asp:DropDownList ID="ddlBinhLuan" runat="server" class="select-1">
                            <asp:ListItem Value="2">----------Chọn----------</asp:ListItem>
                            <asp:ListItem Value="1">---Cho phép bình luận---</asp:ListItem>
                            <asp:ListItem Value="0">--Không được bình luận--</asp:ListItem>
                        </asp:DropDownList>                        
                        <label for="select-save">Tin nổi bật</label>
                        <asp:DropDownList ID="ddlTinNoiBat" runat="server" class="select-1">
                            <asp:ListItem Value="2">----------Chọn----------</asp:ListItem>
                            <asp:ListItem Value="1">-----------Có-----------</asp:ListItem>
                            <asp:ListItem Value="0">----------Không---------</asp:ListItem>
                        </asp:DropDownList> 
                        <label for="select-save">Trạng thái</label>
                        <asp:DropDownList ID="ddlTrangThai" runat="server" class="select-1">
                            <asp:ListItem Value="2">----------Chọn----------</asp:ListItem>
                            <asp:ListItem Value="1">--------Đăng bài--------</asp:ListItem>
                            <asp:ListItem Value="0">--------Chờ duyệt-------</asp:ListItem>
                        </asp:DropDownList>                        
                        <div class="submit-box">
                            <input type="reset" name="reset" value="Nhập lại"/>
                            <asp:Button ID="btnLuu" runat="server" Text="Lưu" 
                                class="preview-pages-btn-2 tip" title="Lưu bài viết" 
                                onclick="btnLuu_Click"  />
                        </div>  
                    </div>
        	    </div>
            </div>
        </div>                                                           
</div>